*{
	margin: 0;
	padding: 0;
}

/* 头像样式 */
.avatar-container {
    height: 3rem;
    width: 3rem;
    display: inline-flex;       /* 使用flex布局 */
    align-items: center;        /* 垂直居中 */
    justify-content: center;    /* 水平居中 */
    background-color: #007BFF;
    color: white;
    text-align: center;
    border-radius: 1.5rem;      /* 更简单的方式来调整边界半径 */
}

/* 头像内容样式 */
.avatar-content {
    font-size: 1.5rem;
    display: block;
}

/* 粘性导航栏样式 */
.navbar {
  list-style-type: none;
  overflow: hidden;
  background-color: #E9B384;
  position: sticky;
  top: 0;
  height: 100px;
}

.navbar li {
  float: right;
  height: 100px;
}

.navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  height: 100px;
  width: 100px;
  line-height: 80px;
    font-size: 25px;
}

.navbar li a:hover {
  background-color: #9BABB8;

}

/* 页面布局样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#up0 {
  background-image: url(../img/dive-4219524_1280.png);
  background-size: cover;
  padding: 20px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

#up0 img {
  width: 100%;
  height: 100%;
  position: relative;
  left: 20px;

}

.search-box {
    float: right;
    position: relative;
    right: 15%;
}

.search-box input[type="text"] {
    border-radius: 20px;
    padding: 8px 30px 8px 15px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.search-box input[type="text"]:focus {
    border-color: dodgerblue;
}

.search-box button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-box input:hover{
	border: 2px solid dodgerblue;
	box-shadow: 1px 1px 10px #888888;
}

.search-box button:hover {
    color: dodgerblue;
    size: ledger;
}

.login {
  position: relative;
  left: 90%;
}

.login a {
  margin-left: 10px;
  text-decoration: none;
  color: white;
}

.login a:hover{
	color: dodgerblue;

}

.login::after {
  display: table;
  clear: both;
}

#up1 {
  position: sticky;
  top: 0;
  z-index: 1;
}

#mid {
  height: 700px;
 background-image: url(../img/沙滩.png);
  background-size:100% 100%;
  position: relative;
  display: flex;
}

#notice_box{
	width: 200px;
	height: 150px;
	background:rgba(255,255,255,0.8);
	position: sticky;
	top: 120px;
	margin-top: 20px;
	margin-left: 1%;
}

#notice{
	text-align: center;
	padding: 10px;
}

.scrolling-text {
  width: 200px;
  height: 50px;
  overflow: hidden;
  margin-top: 20px;
}

.scrolling-text p {
  position: relative;
  animation: scrollText 10s linear infinite;
}

/*文字滚动*/
@keyframes scrollText {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

#buttom_box{
	width: 200px;
	height: 150px;
	background: rgba(255,255,255,0);
	position: sticky;
	margin-top: 20px;
	top: 120px;
	margin-left: 70%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}

.button {
  display: inline-block;
  width: 120px;
  height: 60px;
  padding: 15px 25px;
  font-size: 20px;
  cursor: pointer;
  text-align: center;   
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #999;
}

.button:hover {background-color: #3e8e41}

.button:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}


#window{
	width: 60%;
	height: 400px;
	background: rgba(255,255,255,0.8);
	position: absolute;
	margin-top: 200px;
	display: flex;
	right: 20%;
}



#fish1{
	width: 50px;
	height: 50px;
	top: 300px;
	left: 0px;
	background-image: url(../img/octopus-303622_1280.png);
	background-size: 100% 100%;
	position: absolute;
	animation: mymove 15s ease alternate infinite;
	border: none;
	
}

#fish1:hover{
	
}

@keyframes mymove{
	0%{top: 250px;left: 0px;}
	20%{top: 300px;left: 310px;}
	40%{top: 250px;left: 600px;}
	60%{top: 120px;left: 200px;}
	100%{top: 300px;left: 700px;}
}



#down {
  height: 200px;
  background-color: #f1f1f1;
  text-align: center;
  padding-top: 80px;
  	background-image: linear-gradient(180deg,#FFFACD, #FFFACD);
}

.introduction{
	width: 60%;
	height: 120px;
	letter-spacing: 2px;
	padding: 10px;
	text-align: center;
	position: relative;
	left: 20%;
	top: -20%;
	line-height: 200%;
}


.footer{
	width: 100%;
	position: relative;
	height: 100px;
	background: #7C9D96	;
	display: flex;
	justify-content: space-around;
	align-items: center;
	overflow: hidden;
}


